package com.retail.lottery.colalottery.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.retail.lottery.colalottery.entity.ColaAnswerRecord;
import com.retail.lottery.colalottery.vo.request.QuestionAnswerListRequest;
import com.retail.lottery.colalottery.vo.request.QuestionAnswerRequest;
import com.retail.lottery.colalottery.vo.response.ColaQuestionAnswerRecordVo;
import com.retail.lottery.colalottery.vo.response.ColaQuestionAnswerResultVo;

import java.util.List;

/**
* @author jarvis.zhang
* @description 针对表【cola_answer_record(可乐答题记录表)】的数据库操作Service
* @createDate 2025-06-17 13:41:24
*/
public interface ColaAnswerRecordService extends IService<ColaAnswerRecord> {


    /**
     * 答题接口
     * @param answer
     * @return
     */
    ColaQuestionAnswerResultVo answerQuestion(QuestionAnswerRequest answer);

    /**
     * 查询当前登陆人历史答题清单
     * @param answerRequest
     * @return
     */
    List<ColaQuestionAnswerRecordVo> answerHistory(QuestionAnswerListRequest answerRequest);
}
